package com.travel.common.attraction;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 用于景点标签的中英文转换
 */
public class AttractionTagMap {
    private static final Map<String, String> tagMap = new HashMap<>();

    static {
        tagMap.put("ruins","古代遗址");
        tagMap.put("museum","博物馆");
        tagMap.put("parkGarden","公园");
        tagMap.put("themeParks","主题公园");
        tagMap.put("naturalLandscape","自然景观");
        tagMap.put("culturalLandscape","人文景观");
        tagMap.put("waters","水域风光");
        tagMap.put("biologicalLandscape","生物景观");
        tagMap.put("ethnicFolklore","民族风俗");
    }


    public static String convertToChinese(String englishTag) {
        // 根据传入的英文标签获取对应的中文标签
        return tagMap.getOrDefault(englishTag, "未知标签");
    }

    public static List<String> getAllTags() {
        List<String> tags = new ArrayList<>();
        for (String englishTag : tagMap.keySet()) {
            String chineseTag = convertToChinese(englishTag);
            tags.add(chineseTag);
        }
        return tags;
    }
}
